xquery version "1.0";

declare namespace request="http://exist-db.org/xquery/request";
declare namespace response="http://exist-db.org/xquery/response";
declare namespace session="http://exist-db.org/xquery/session";
declare namespace xdb="http://exist-db.org/xquery/xmldb";

import module namespace ranking="http://www.example.com/ranking" at "xmldb:exist:///db/projdb/modules/ranking_mod.xqm";

(: type of result document = text/XML :)
declare option exist:serialize "method=xml media-type=text/xml omit-xml-declaration=yes indent=yes";

let $parameters := doc('/db/projdb/participatie_parameters_ge2009.xml')
return ranking:create_rankingList($parameters)